[colors]
background = ${xrdb:background}
background-alt = #2D323D
foreground = ${xrdb:color7}
color1 = ${xrdb:color1}
color2 = ${xrdb:color2} 
color3 = ${xrdb:color3}
color4 = ${xrdb:color4}
color5 = ${xrdb:color5}
color6 = ${xrdb:color6}
color8 = ${xrdb:color8}

[bar/mybar]
override-redirect = false 
bottom = false
background = ${colors.background}
foreground = ${colors.foreground}
fixed-center = true
width = 100%
height = 14
radius = 0.0
line-size = 0
line-color = #f00
offset-y = 0
offset-x = 0

font-0 = scientifica:style=Regular:pixelsize=10;2

modules-right = network alsa backlight cpu battery memory
modules-center = date time
modules-left =  i3
; Position of the system tray window
;tray-position = left
tray-maxsize = 15
tray-background = ${colors.background}
tray-offset-x = 0
tray-offset-y = 0
; Pad the sides of each tray icon
tray-padding = 1

[module/i3]
type = internal/i3

pin-workspaces = false
enable-click = true
enable-scroll = false
format-padding = 1

ws-icon-0 = 1;I
ws-icon-1 = 2;II
ws-icon-2 = 3;III
ws-icon-3 = 4;IV
ws-icon-4 = 5;V
ws-icon-5 = 6;VI
ws-icon-6 = 7;VII
ws-icon-7 = 8;VIII
ws-icon-8 = 9;IX
ws-icon-9 = 10;X


format = <label-state>
format-background = $color1

label-focused = %icon%
label-focused-padding = 1
label-focused-foreground = #232731
label-focused-background = #9faab8

label-unfocused = %icon%
label-unfocused-padding = 1
;label-unfocused-foreground = ${color.coccupied}

label-visible = %icon%
label-visible-padding = 1
;label-visible-foreground = ${color.acolor}

label-urgent = %icon%
label-urgent-padding = 1
;label-urgent-foreground = ${color.curgent}

[module/time]
type = internal/date
time = %H:%M:%S
time-alt = %H:%M:%S
format = TIME <label>
#format-background = #55ff3399
format-foreground = ${colors.color1} 
format-padding = 2
label = %time%
label-foreground = ${colors.foreground} 

[module/date]
type = internal/date
date = %m-%d-%Y
date-alt = %A, %d %B %Y
format = DATE <label>
format-foreground = ${colors.color1}
format-padding = 2
label = %date%
label-foreground = ${colors.foreground}

[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 98

format-charging = BAT <label-charging>
format-discharging = BAT <label-discharging>
format-full = BAT <label-full>
label-charging = %percentage%%
label-discharging = %percentage%%

label-charging-foreground = ${colors.foreground}
label-discharging-foreground = ${colors.foreground}
label-full-foreground = ${colors.foreground}

format-charging-foreground = ${colors.color2}
format-discharging-foreground = ${colors.color2}
format-full-foreground = ${colors.color2}

format-charging-padding = 1
format-discharging-padding = 1
format-full-padding = 1

[module/network]
type = internal/network
interface = wlp3s0
interval = 3.0
unknown-as-up = true
accumulate-stats = true

format-connected = WIFI <label-connected>
label-connected = %essid%
format-connected-padding = 1
format-connected-foreground = ${colors.color4}
label-connected-foreground = ${colors.foreground}

[module/alsa]
type = internal/alsa

format-volume = VOL <label-volume>
label-muted = muted
label-muted-padding = 2
label-volume-foreground = ${colors.foreground}
format-volume-foreground = ${colors.color1}
format-volume-padding = 2

[module/backlight]
type = internal/backlight
output = LVDP-1
card = intel_backlight
enable-scroll = true
format = BL <label>
format-padding = 1
format-foreground = ${colors.color6}
label-foreground = ${colors.foreground}
label = %percentage%%

[module/xkeyboard]
type = internal/xkeyboard
blacklist-1 = scroll lock
format = <label-layout>
format-spacing = 2
label-indicator = %name%
layout-icon-default = some-icon
layout-icon-0 = tr;T
layout-icon-1 = us;U
label-indicator-on = +%name%
label-indicator-off = -%name%

[module/memory]
type = internal/memory
interval = 3
format = <label> 
label = %gb_used%/%gb_free%
[module/cpu]
type = internal/cpu

format = CPU <label>
format-foreground = ${colors.color3}
format-padding = 2
label = %percentage%%
label-foreground = ${colors.foreground}
